package com.fh.shop.controller;/**
 * 描述:
 * Author:袁亚强
 * Date:2021/12/1617:32
 */

import com.fh.common.baseData.TongyiData;
import com.fh.shop.service.ImgsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * created by macro on 2021/12/16,
 */
@RestController
@RequestMapping("imgs")
public class ImgsController {
    @Autowired
    private ImgsService imgsService;

    @PostMapping("queryById")
    public TongyiData queryById(Integer id) {
        return TongyiData.succeess(imgsService.queryById(id));
    }
}
